package com.tlx.design.factory.simple;

import com.tlx.design.factory.Car;
import com.tlx.design.factory.simple.SimpleFactory;

public class TestSimpleFactory {
    public static void main(String[] args) {

        //这边就是我们的消费者
        Car car = new SimpleFactory().getName("BMW");
        System.out.println(car.getName());
    }
}
